class CreateStudentProfiles < ActiveRecord::Migration
  def change
    create_table :student_profiles do |t|
      t.primary_key :id
      t.integer :student_id
      t.string :firstname
      t.string :lastname
      t.integer :gender
      t.string :location
      t.string :classname
      t.date :birthday
      t.text :hobby
      t.text :extra
      t.string :studentcode
      t.string :mobile
      t.string :homephone
      t.references :student
    end
  end
end
